package cate.common.table.item.fairy.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "灵器栏位")
public class FairyPosRow extends ERow {

    @NoteField(value = "栏位ID")
    public byte pos;

    @NoteField(value = "灵器类型")
    public byte type;

    @NoteField(value = "开启星级")
    public int star;

    @NoteField(value = "开启英雄等级")
    public int level;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("栏位ID", 0);
        this.pos = xrw.getByte("栏位ID", (byte) 0);
        this.type = xrw.getByte("灵器类型", (byte) 0);
        this.star = xrw.getInteger("开启星级", 0);
        this.level = xrw.getInteger("开启英雄等级", 0);
    }

    @Override
    public void decode() {}
}
